package ru.urfc.portal.ui.client.model.catalogs;

import ru.urfc.portal.ui.client.Style;

public abstract class DocumentState extends CatalogItemWithStyle {

	static public final DocumentState DRAFT = new DocumentState("DRAFT", "редактируется") {
		@Override
		public String getStyleName(Style style) {
			return style.documentDraft();
		}		
	};

	static public final DocumentState SUBMITTED = new DocumentState("SUBMITTED_CODE", "отправлено") {
		@Override
		public String getStyleName(Style style) {
			return style.documentDraft();
		}		
	};
	
	static public final DocumentState SATISFIED = new DocumentState("SATISFIED", "исполнено") {
		@Override
		public String getStyleName(Style style) {
			return style.documentSatisfied();
		}		
	};

	static public final DocumentState IN_PROGRESS = new DocumentState("IN_PROGRESS", "на рассмотрении") {
		@Override
		public String getStyleName(Style style) {
			return style.documentInProcess();
		}		
	};

	static public final DocumentState REFUSED = new DocumentState("REFUSED", "отказано") {
		@Override
		public String getStyleName(Style style) {
			return style.documentRefused();
		}		
	};

	static public DocumentState[] values = {DRAFT, SUBMITTED, SATISFIED, IN_PROGRESS, REFUSED}; 
	
	protected DocumentState(String code, String text) {
		super(code, text);
	}

}
